libxl/arm: Fix build on arm64 + acpi w/ gcc 8.2
authorChristopher Clark <christopher.w.clark@gmail.com>
Thu, 16 Aug 2018 20:22:41 +0000 (13:22 -0700)
committerRaspbian forward porter <root@raspbian.org>
Thu, 27 Jun 2019 17:16:25 +0000 (18:16 +0100)
commit9fc1174aa0d4ec45fdc5ed9a7b73323375e27239
tree399b9c00d86e4ec18136051d2f7b92e61944a41e
parentf6924691eac8f7eaf0dc01cc818b7604c954213a
libxl/arm: Fix build on arm64 + acpi w/ gcc 8.2

Add zero-padding to #defined ACPI table strings that are copied.
Provides sufficient characters to satisfy the length required to
fully populate the destination and prevent array-bounds warnings.
Add BUILD_BUG_ON sizeof checks for compile-time length checking.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Acked-by: Wei Liu <wei.liu2@citrix.com>
(cherry picked from commit b8f33431f3dd23fb43a879f4bdb4283fdc9465ad)

Gbp-Pq: Name 0026-libxl-arm-Fix-build-on-arm64-acpi-w-gcc-8.2.patch
tools/libxl/libxl_arm_acpi.c